//
//  PlatformTopView.h
//  PingAnBank
//
//  Created by 清正 on 16/3/9.
//  Copyright © 2016年 qz. All rights reserved.
//

#import <UIKit/UIKit.h>

#define ItemFoundSize 16

typedef void(^selectBtn)(UIButton *button, NSInteger index);

@interface PlatformTopView : UIScrollView

@property(strong, nonatomic) UIColor *selectFontColor;
@property(strong, nonatomic) UIColor *defaultFontColor;

@property(strong, nonatomic) UIColor *lineColor;

@property(strong, nonatomic) NSMutableArray *textArray;
@property(assign, nonatomic) NSInteger selectIndex;

/**
 *  遍历数组中的类型 并找到指定属性对应的值
 *
 *  @param propertyName 属性名
 *  @param dataArray    数据源
 */
-(void)showString:(NSString *)propertyName withDataArray:(NSMutableArray*)dataArray;

@property(copy,nonatomic)selectBtn buttonBlock;
-(void)didButtonClickBlock:(selectBtn)newBlock;

@end
